package com.imdroid.carac.model;

import java.util.Date;

public class User {
	/**
	 * 用户ID
	 */
	private int user_id;
	/**
	 * 车机-IMEI
	 */
	private String imei_number;
	/**
	 * 车机-SIM卡号码
	 */
	private String sim_number;
	/**
	 * 用户名称
	 */
	private String user_name;
	/**
	 * 用户手机号码
	 */
	private String mobile_phone;
	/**
	 * 车型
	 */
	private String vechile_model;
	/**
	 * 车牌号码
	 */
	private String board_plate;
	/**
	 * 车架号码
	 */
	private String frame_number;
	/**
	 * 发动机号
	 */
	private String engine_number;
	/**
	 * 昵称
	 */
	private String nickname;
	/**
	 * 购买日期
	 */
	private Date purchase_date;
	/**
	 * 微博账号
	 */
	private String weibo_account;
	/**
	 * 微博令牌
	 */
	private String weibo_token;
	/**
	 * 微信账号
	 */
	private String weixin_account;
	/**
	 * 微信令牌
	 */
	private String weixin_token;
	/**
	 * 性别
	 */
	private String gender;
	/**
	 * 队伍的进入密码
	 */
	private String team_access_code;

	/**
	 * @return the user_id
	 */
	public int getUser_id() {
		return user_id;
	}

	/**
	 * @param user_id
	 *            the user_id to set
	 */
	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}

	/**
	 * @return the imei_number
	 */
	public String getImei_number() {
		return imei_number;
	}

	/**
	 * @param imei_number
	 *            the imei_number to set
	 */
	public void setImei_number(String imei_number) {
		this.imei_number = imei_number;
	}

	/**
	 * @return the sim_number
	 */
	public String getSim_number() {
		return sim_number;
	}

	/**
	 * @param sim_number
	 *            the sim_number to set
	 */
	public void setSim_number(String sim_number) {
		this.sim_number = sim_number;
	}

	/**
	 * @return the user_name
	 */
	public String getUser_name() {
		return user_name;
	}

	/**
	 * @param user_name
	 *            the user_name to set
	 */
	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}

	/**
	 * @return the mobile_phone
	 */
	public String getMobile_phone() {
		return mobile_phone;
	}

	/**
	 * @param mobile_phone
	 *            the mobile_phone to set
	 */
	public void setMobile_phone(String mobile_phone) {
		this.mobile_phone = mobile_phone;
	}

	/**
	 * @return the vechile_model
	 */
	public String getVechile_model() {
		return vechile_model;
	}

	/**
	 * @param vechile_model
	 *            the vechile_model to set
	 */
	public void setVechile_model(String vechile_model) {
		this.vechile_model = vechile_model;
	}

	/**
	 * @return the board_plate
	 */
	public String getBoard_plate() {
		return board_plate;
	}

	/**
	 * @param board_plate
	 *            the board_plate to set
	 */
	public void setBoard_plate(String board_plate) {
		this.board_plate = board_plate;
	}

	/**
	 * @return the frame_number
	 */
	public String getFrame_number() {
		return frame_number;
	}

	/**
	 * @param frame_number
	 *            the frame_number to set
	 */
	public void setFrame_number(String frame_number) {
		this.frame_number = frame_number;
	}

	/**
	 * @return the engine_number
	 */
	public String getEngine_number() {
		return engine_number;
	}

	/**
	 * @param engine_number
	 *            the engine_number to set
	 */
	public void setEngine_number(String engine_number) {
		this.engine_number = engine_number;
	}

	/**
	 * @return the nickname
	 */
	public String getNickname() {
		return nickname;
	}

	/**
	 * @param nickname
	 *            the nickname to set
	 */
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	/**
	 * @return the purchase_date
	 */
	public Date getPurchase_date() {
		return purchase_date;
	}

	/**
	 * @param purchase_date
	 *            the purchase_date to set
	 */
	public void setPurchase_date(Date purchase_date) {
		this.purchase_date = purchase_date;
	}

	/**
	 * @return the weibo_account
	 */
	public String getWeibo_account() {
		return weibo_account;
	}

	/**
	 * @param weibo_account
	 *            the weibo_account to set
	 */
	public void setWeibo_account(String weibo_account) {
		this.weibo_account = weibo_account;
	}

	/**
	 * @return the weibo_token
	 */
	public String getWeibo_token() {
		return weibo_token;
	}

	/**
	 * @param weibo_token
	 *            the weibo_token to set
	 */
	public void setWeibo_token(String weibo_token) {
		this.weibo_token = weibo_token;
	}

	/**
	 * @return the weixin_account
	 */
	public String getWeixin_account() {
		return weixin_account;
	}

	/**
	 * @param weixin_account
	 *            the weixin_account to set
	 */
	public void setWeixin_account(String weixin_account) {
		this.weixin_account = weixin_account;
	}

	/**
	 * @return the weixin_token
	 */
	public String getWeixin_token() {
		return weixin_token;
	}

	/**
	 * @param weixin_token
	 *            the weixin_token to set
	 */
	public void setWeixin_token(String weixin_token) {
		this.weixin_token = weixin_token;
	}

	/**
	 * @return the gender
	 */
	public String getGender() {
		return gender;
	}

	/**
	 * @param gender
	 *            the gender to set
	 */
	public void setGender(String gender) {
		this.gender = gender;
	}

	/**
	 * @return the team_access_code
	 */
	public String getTeam_access_code() {
		return team_access_code;
	}

	/**
	 * @param team_access_code
	 *            the team_access_code to set
	 */
	public void setTeam_access_code(String team_access_code) {
		this.team_access_code = team_access_code;
	}

	/**
	 * Get the defualt team(leader is myself)
	 * 
	 * @return the defualt team
	 */
	public Team getDefualtTeam() {
		Team team = new Team();
		team.setTeamId(user_id);
		team.setTeamName(nickname);

		TeamMember member = new TeamMember();
		member.setId(user_id);
		member.setDisplayName(nickname);
		team.setTeamLeader(member);

		return team;
	}
	
}
